<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.StyleMutable类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_style_mutable.html">StyleMutable</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_style_mutable-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.StyleMutable类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.StyleMutable 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_style_mutable.png" usemap="#awtk.StyleMutable_map" alt=""/>
  <map id="awtk.StyleMutable_map" name="awtk.StyleMutable_map">
<area href="classawtk_1_1_style.html" alt="awtk.Style" shape="rect" coords="0,0,114,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa5a04a3dc58ff2bddb830a9ae109488a"><td class="memItemLeft" align="right" valign="top"><a id="aa5a04a3dc58ff2bddb830a9ae109488a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>StyleMutable</b> (long nativeObj)</td></tr>
<tr class="separator:aa5a04a3dc58ff2bddb830a9ae109488a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8da73d9822b2234f5bf52aa5f1637d32"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_style_mutable.html#a8da73d9822b2234f5bf52aa5f1637d32">setName</a> (String name)</td></tr>
<tr class="separator:a8da73d9822b2234f5bf52aa5f1637d32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5611724102c688713c603836dd681dac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_style_mutable.html#a5611724102c688713c603836dd681dac">setInt</a> (String state, String name, int val)</td></tr>
<tr class="separator:a5611724102c688713c603836dd681dac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16c63088a81d28ad4ee6cc28efb01182"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_style_mutable.html#a16c63088a81d28ad4ee6cc28efb01182">getName</a> ()</td></tr>
<tr class="separator:a16c63088a81d28ad4ee6cc28efb01182"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classawtk_1_1_style"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classawtk_1_1_style')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classawtk_1_1_style.html">awtk.Style</a></td></tr>
<tr class="memitem:acf12f74e21a8e05e72f04a7048db10b1 inherit pub_methods_classawtk_1_1_style"><td class="memItemLeft" align="right" valign="top"><a id="acf12f74e21a8e05e72f04a7048db10b1"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Style</b> (long nativeObj)</td></tr>
<tr class="separator:acf12f74e21a8e05e72f04a7048db10b1 inherit pub_methods_classawtk_1_1_style"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e85e645df39cb1cae2e8cb34fce8ef6 inherit pub_methods_classawtk_1_1_style"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_style.html#a1e85e645df39cb1cae2e8cb34fce8ef6">notifyWidgetStateChanged</a> (Widget widget)</td></tr>
<tr class="separator:a1e85e645df39cb1cae2e8cb34fce8ef6 inherit pub_methods_classawtk_1_1_style"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac26fa4d41eee90a2b6b6d074301777e6 inherit pub_methods_classawtk_1_1_style"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_style.html#ac26fa4d41eee90a2b6b6d074301777e6">isValid</a> ()</td></tr>
<tr class="separator:ac26fa4d41eee90a2b6b6d074301777e6 inherit pub_methods_classawtk_1_1_style"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb6daac66b2df336696f04618e750792 inherit pub_methods_classawtk_1_1_style"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_style.html#aeb6daac66b2df336696f04618e750792">getInt</a> (String name, int defval)</td></tr>
<tr class="separator:aeb6daac66b2df336696f04618e750792 inherit pub_methods_classawtk_1_1_style"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeeef0db2665a2e7378dc22a0b3eb18c3 inherit pub_methods_classawtk_1_1_style"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_style.html#aeeef0db2665a2e7378dc22a0b3eb18c3">getStr</a> (String name, String defval)</td></tr>
<tr class="separator:aeeef0db2665a2e7378dc22a0b3eb18c3 inherit pub_methods_classawtk_1_1_style"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4162f03e8ccd38c9debcd3bb2a0d2b6f inherit pub_methods_classawtk_1_1_style"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_style.html#a4162f03e8ccd38c9debcd3bb2a0d2b6f">set</a> (String state, String name, <a class="el" href="classawtk_1_1_value.html">Value</a> value)</td></tr>
<tr class="separator:a4162f03e8ccd38c9debcd3bb2a0d2b6f inherit pub_methods_classawtk_1_1_style"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab542a920bae5c68b67119d73f4ea37bf inherit pub_methods_classawtk_1_1_style"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_style.html#ab542a920bae5c68b67119d73f4ea37bf">isMutable</a> ()</td></tr>
<tr class="separator:ab542a920bae5c68b67119d73f4ea37bf inherit pub_methods_classawtk_1_1_style"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a1d1b2549b0e2d35384cab112ad86eee5"><td class="memItemLeft" align="right" valign="top"><a id="a1d1b2549b0e2d35384cab112ad86eee5"></a>
static <a class="el" href="classawtk_1_1_style_mutable.html">StyleMutable</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a1d1b2549b0e2d35384cab112ad86eee5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ce94c2e0fa50fa911c17d27f36f36cb"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_style_mutable.html">StyleMutable</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_style_mutable.html#a9ce94c2e0fa50fa911c17d27f36f36cb">cast</a> (<a class="el" href="classawtk_1_1_style.html">Style</a> s)</td></tr>
<tr class="separator:a9ce94c2e0fa50fa911c17d27f36f36cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30f6d28ea9397af6403065ad53acad66"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_style.html">Style</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_style_mutable.html#a30f6d28ea9397af6403065ad53acad66">create</a> (Widget widget, <a class="el" href="classawtk_1_1_style.html">Style</a> default_style)</td></tr>
<tr class="separator:a30f6d28ea9397af6403065ad53acad66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classawtk_1_1_style"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classawtk_1_1_style')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="classawtk_1_1_style.html">awtk.Style</a></td></tr>
<tr class="memitem:a6599760cf44294326507b0195d28a0ea inherit pub_static_methods_classawtk_1_1_style"><td class="memItemLeft" align="right" valign="top"><a id="a6599760cf44294326507b0195d28a0ea"></a>
static <a class="el" href="classawtk_1_1_style.html">Style</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a6599760cf44294326507b0195d28a0ea inherit pub_static_methods_classawtk_1_1_style"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:ae33b71d1a470ef4f726c2c32ba5984b6"><td class="memItemLeft" align="right" valign="top"><a id="ae33b71d1a470ef4f726c2c32ba5984b6"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:ae33b71d1a470ef4f726c2c32ba5984b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classawtk_1_1_style"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classawtk_1_1_style')"><img src="closed.png" alt="-"/>&#160;Public 属性 继承自 <a class="el" href="classawtk_1_1_style.html">awtk.Style</a></td></tr>
<tr class="memitem:aabee03e2da00c6818dc289f0672be02a inherit pub_attribs_classawtk_1_1_style"><td class="memItemLeft" align="right" valign="top"><a id="aabee03e2da00c6818dc289f0672be02a"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:aabee03e2da00c6818dc289f0672be02a inherit pub_attribs_classawtk_1_1_style"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>可变的style(可实时修改并生效，主要用于在designer中被编辑的控件，或者一些特殊控件)。</p>
<p>style_mutable也对style_const进行了包装，当用户没修改某个值时，便从style_const中获取。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a9ce94c2e0fa50fa911c17d27f36f36cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ce94c2e0fa50fa911c17d27f36f36cb">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_style_mutable.html">StyleMutable</a> awtk.StyleMutable.cast </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classawtk_1_1_style.html">Style</a>&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为style_mutable对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>style对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>style对象。 </dd></dl>

</div>
</div>
<a id="a30f6d28ea9397af6403065ad53acad66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30f6d28ea9397af6403065ad53acad66">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_style.html">Style</a> awtk.StyleMutable.create </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classawtk_1_1_style.html">Style</a>&#160;</td>
          <td class="paramname"><em>default_style</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建style_mutable对象。</p>
<p>除了测试程序外不需要直接调用，widget会通过style_factory_create创建。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>控件 </td></tr>
    <tr><td class="paramname">default_style</td><td>缺省的style。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>style对象。 </dd></dl>

</div>
</div>
<a id="a16c63088a81d28ad4ee6cc28efb01182"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16c63088a81d28ad4ee6cc28efb01182">&#9670;&nbsp;</a></span>getName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.StyleMutable.getName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>名称。 </p>

</div>
</div>
<a id="a5611724102c688713c603836dd681dac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5611724102c688713c603836dd681dac">&#9670;&nbsp;</a></span>setInt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.StyleMutable.setInt </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置指定名称整数格式的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">state</td><td>控件状态。 </td></tr>
    <tr><td class="paramname">name</td><td>属性名。 </td></tr>
    <tr><td class="paramname">val</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8da73d9822b2234f5bf52aa5f1637d32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8da73d9822b2234f5bf52aa5f1637d32">&#9670;&nbsp;</a></span>setName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.StyleMutable.setName </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置style的名称。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/StyleMutable.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
